<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="../common.jsp"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>
</head>

<body>
	<div class="place">
	    <span>位置：</span>
	    <ul class="placeul">
	    <li><a href="#">患者管理</a></li>
	    <li><a href="#">患者病理信息</a></li>
	    </ul>
	 </div>
<!-- 添加用户form    此节点内部的内容会在弹出框内显示,默认隐藏此节点   -->
    <div id="pthlgy_content" class="hidden" style="display:none;">
      <form id="pthlgyForm" class="form-horizontal" method="post" action="">
        <div class="row">
      		 <div class="control-group span12">
            	<label class="control-label">病历号:</label>
            	<div class="controls">
              		<input type="text" class="input-normal control-text" name="mrn" id="pthlgy_mrn" readonly="readonly" style="background-color:#F0F0F0;">
              		<span class="validate_color">*</span>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span12">
            <label class="control-label">姓名:</label>
            <div class="controls">
              	<input type="text" class="input-normal control-text" readonly="readonly" style="background-color:#F0F0F0;" name="name" id="pthlgy_name">
              	<span class="validate_color">*</span>
            </div>
          </div>
          <div class="control-group span12" > 
            <label class="control-label">肿瘤部位:</label>
            <div class="controls1" id="zlbw_radio">
             	
            </div>
          </div>
          <div class="control-group span12">
          	 <label class="control-label">分化程度:</label>
          	 <div class="controls1" id="fhcd_radio">
          	 
            </div>
          </div>
          <div class="control-group span12">
            <label class="control-label">TNM分期:</label>
            <div class="controls1" id="tnm_radio">
            	
            </div>
          </div>
          <div class="control-group span12">
            <label class="control-label">病理类型:</label>
          	<div class="controls1" id="bllx_radio">
            </div>
          </div>
           <div class="control-group span12">
            <label class="control-label">EGFR检测:</label>
            <div class="controls1">
           	 	<label class="radio_biaodan"><input name="egfr" value="1" type="radio">突变</label>
          		<label class="radio_biaodan" ><input name="egfr" value="0" type="radio">未突变</label>
             	<span class="validate_color">*</span>
            </div>
          </div>
          <div class="control-group span12">
            <label class="control-label">吸烟史:</label>
            <div class="controls1">
          		<label class="radio_biaodan"><input name="smoke" value="1" type="radio">有</label>
          		<label class="radio_biaodan" ><input name="smoke" value="0" type="radio">无</label>
          <span class="validate_color">*</span>
        </div>
          </div>
          <div class="control-group span12">
            <label class="control-label">其他病史:</label>
            <div class="controls">
              	<input type="text" class="input-normal control-text"  name=medical_history id="medical_history">
              	<span class="validate_color">*</span>
            </div>
          </div>
        </div>
        <div><input type="text" name="id" id="pthlgy_id" style="display: none;"></div>
      </form>
    </div>

    <div class="rightinfo" >
    
    <div class="tools">
    	<ul>
    		<li class="li_left" style="margin-left: 25px;">
    			 <label>病例号：</label>
				<input type="text" id="pthlgy_search_mrn" value="${chaxun}">
			</li>
    		<li class="li_left" style="margin-left: 25px;">
				 <label>肿瘤部位：</label>
			 	 <select id="pthlgy_zlbwSelect">
			 	 <option></option>
			 	 </select>
			</li>
			<li class="li_left" style="margin-left: 25px;">
				 <label>分化程度：</label>
			 	 <select id="pthlgy_fhcdSelect">
			 	 <option></option>
			 	 </select>
			</li>
			<li class="li_left" style="margin-left: 25px;">
			 	<label>病理类型：</label>
		 	 	<select id="pthlgy_bllxSelect">
		 	 		<option></option>
		 	 	</select>
			</li>
			
    	</ul>
    <div class="tools" style="padding-top:5px;">
   	 	 <ul class="toolbar1">
   			 <li onclick="showPthlgyPageDataList(1)"><span><img src="${path}/images/t04.png" /></span>查询</li>
     	  	 </ul>
   	 	 <ul>
   	 	 	 <li class="li_left" style="margin-left: 9px;">
				 <label>TNM分期：</label>
			 	 <select id="pthlgy_tnmSelect">
			 	 <option></option>
			 	 </select>
			</li>
			<li class="li_left" style="margin-left: 19px;">
			 	<label>EGFR检测：</label>
		 	 	<select id="pthlgy_egfrSelect">
		 	 		<option></option>
		 	 		<option>突变</option>
		 	 		<option>未突变</option>
		 		 </select>
			 </li>
			 <li class="li_left" style="margin-left: 37px;">
			 	<label>吸烟史：</label>
		 	 	<select id="pthlgy_smokeSelect">
		 	 		<option></option>
		 	 		<option>有</option>
		 	 		<option>无</option>
		 		</select>
			 </li>
   	 	 </ul>
    </div>
    </div>
    <table class="tablelist" id="pthlgyTable" style="margin-top:45px;">
    	<thead>
    	<tr>
        <th>病历号</th>
        <th>姓名</th>
		<th>肿瘤部位</th>
        <th>分化程度</th>
        <th>TNM分期</th>
        <th>病理类型</th>
        <th>EGFR检测</th>
        <th>吸烟史</th>
        <th>其他病史</th>
        <th class="operate" style="width:165px;">操作</th>
        </tr>
        </thead>
  	 	<c:if test="${!empty pthlgyPageInfo}">
  	 		<c:forEach items="${pthlgyBeanList }" var="pthlgyList">
  	 			<tr>
			        <td title="${pthlgyList.mrn}">${pthlgyList.mrn}</td>
			        <td title="${pthlgyList.name}">${pthlgyList.name}</td>
			        <c:if test="${pthlgyList.tumor_site==NULL}"><td title="NULL">NULL</td></c:if>
			        <c:if test="${pthlgyList.tumor_site!=NULL}"><td title="${pthlgyList.tumor_site }">${pthlgyList.tumor_site }</td></c:if>
			        <c:if test="${pthlgyList.dffrnttn==NULL}"><td title="NULL">NULL</td></c:if>
			        <c:if test="${pthlgyList.dffrnttn!=NULL}"><td title="${pthlgyList.dffrnttn }">${pthlgyList.dffrnttn }</td></c:if>
			        <c:if test="${pthlgyList.tnm==NULL}"><td title="NULL">NULL</td></c:if>
			        <c:if test="${pthlgyList.tnm!=NULL}"><td title="${pthlgyList.tnm }">${pthlgyList.tnm }</td></c:if>
			        <c:if test="${pthlgyList.pathology==NULL}"><td title="NULL">NULL</td></c:if>
			        <c:if test="${pthlgyList.pathology!=NULL}"><td title="${pthlgyList.pathology }">${pthlgyList.pathology }</td></c:if>
					<c:if test="${pthlgyList.egfr==1}"><td title="突变">突变</td></c:if>
					<c:if test="${pthlgyList.egfr==0}"><td title="未突变">未突变</td></c:if>
					<c:if test="${pthlgyList.egfr==NULL}"><td title="NULL">NULL</td></c:if>
					<c:if test="${pthlgyList.smoke==1}"><td title="有">有</td></c:if>
					<c:if test="${pthlgyList.smoke==0}"><td title="无">无</td></c:if>
					<c:if test="${pthlgyList.smoke==NULL}"><td title="NULL">NULL</td></c:if>
					<c:if test="${pthlgyList.medical_history==NULL}"><td title="NULL">NULL</td></c:if>
					<c:if test="${pthlgyList.medical_history!=NULL}"><td title="${pthlgyList.medical_history }">${pthlgyList.medical_history }</td></c:if>
			        <td>
			        	<ul class="tabletoolbar"  id='pthlgy_operate${pthlgyList.id}'>
			        		<li class="pmsncontrol" onclick="pthlgyEdit('${pthlgyList.mrn}')"><span><img src="${path}/images/table_t01.png"></span>编辑</li>
			        	</ul>	
      				</td>
       			 </tr> 
  	 		</c:forEach>
  	 	</c:if> 
        </tbody>
    </table>
	
    <div id="pthlgy_box">
    </div>
    
    </div>
    <script type="text/javascript">
	$(function(){
		pthlgyManagerInit();
		if(window.parent.currentUserPmsn == normalLimit){
			pmsnControl();
		}
		getDivPage("pthlgy",'${pthlgyPageInfo}',showPthlgyPageDataList);
		pthlgyHuiTian('${zlbw}','${fhcd}','${tnm}','${bllx}','${egfr}','${smoke}');
	});
	</script>
</body>
</html>